export default {
  namespaced: true, //开启命名空间
  state: {
    userId: "",
    userName: "",
    token: "",
  },
  mutations: {
    SET_USER_ID(state, userId) {
      state.userId = userId;
    },
  },
  actions: {
    login(context, payload) {
      console.log("111", require.context("@/views", true, /\.vue$/).keys());
      context.commit("SET_USER_ID", payload.userId);
    },
  },
  getters: {},
};
